<?php

namespace app\admin\controller\base;

use app\common\model\BaseArea;
use ffhome\frame\controller\BaseController;
use think\App;

class Area extends BaseController
{
    public function getCityListByProvinceId($provinceId)
    {
        $this->success('', BaseArea::getAreaByParent(BaseArea::T_CITY, $provinceId));
    }

    public function getTownListByCityId($cityId)
    {
        $this->success('', BaseArea::getAreaByParent(BaseArea::T_TOWN, $cityId));
    }
}